package person.zjh.kaoyansharehub.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import person.zjh.kaoyansharehub.mapper.CategoryMapper;
import person.zjh.kaoyansharehub.pojo.Category;
import person.zjh.kaoyansharehub.service.CategoryService;

import java.util.List;

/**
 * @description: TODO
 * @author 郑佳豪
 * @date 2025/2/15 16:12
 * @version 1.0
 */
@Service
@RequiredArgsConstructor
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper,Category> implements CategoryService {


    @Override
    public List<Category> selectAllCategory() {
        return baseMapper.selectList(null);
    }
}
